package cn.minhx.lab.design_patterns.adapter.f2.interfaces;

public class InsideOrderAdapter implements OrderAdapterService {

    private final OrderService orderService = new OrderService();

    public boolean isFirst(String uId) {
        return orderService.queryUserOrderCount(uId) == 1;
    }



    public static class OrderService {

        public Integer queryUserOrderCount(String uId) {
            return 10;
        }

    }
}